

<div id="feature-columns" class="feature-columns feature-columns-<?php @esc_attr_e($table['columns'])?>">
	
	<div id="column-skeleton" style="display:none">
		
		<span class="ui-icon ui-icon-carat-2-e-w column-handle"></span>
		<a href="#" class="ui-icon ui-icon-trash submitdelete deletion"></a>
			
		<input type="text" class="column-title" name="" placeholder="<?php _e('Title', 'featuretable') ?>" />
		<input type="text" class="column-imageurl" name="" placeholder="<?php _e('Image url', 'featuretable') ?>" />
		<input type="text" class="column-linkurl" name="" placeholder="<?php _e('Link url', 'featuretable') ?>" />	
		<textarea rows="6" class="column-description" name="" placeholder="<?php _e('Description', 'featuretable') ?>"> </textarea>
		
	</div>
	
	<div class="type">
		<label><?php _e('Number of Columns', 'featuretable') ?></label>
		<select id="number-columns" name="number_columns">
		  <option value ="1" <?php if($table['columns'] == '1') echo 'selected="selected"';?>>1</option>
		  <option value ="2" <?php if($table['columns'] == '2') echo 'selected="selected"';?>>2</option>
		  <option value ="3" <?php if($table['columns'] == '3') echo 'selected="selected"';?>>3</option>	
		</select>	
		
		<label><?php _e('Image Position', 'featuretable') ?></label>
		<select id="image-alignment" name="image_alignment">
		  <option value ="left" <?php if($table['imagealignment'] == 'left') echo 'selected="selected"';?>><?php _e('Left', 'featuretable') ?></option>
		  <option value ="right" <?php if($table['imagealignment'] == 'right') echo 'selected="selected"';?>><?php _e('Right', 'featuretable') ?></option>
		  <option value ="top" <?php if($table['imagealignment'] == 'top') echo 'selected="selected"';?>><?php _e('Top', 'featuretable') ?></option>	
		</select>	
	</div>
	
	<?php // Existing columns of the price table ?>
	<?php
	if(is_array($table['features'])) {
		foreach($table['features'] as $i => $column) : ?>
			<div class="column">
				<span class="ui-icon ui-icon-carat-2-e-w column-handle"></span>
				<a href="#" class="ui-icon ui-icon-trash submitdelete deletion"></a>
						
				<input type="text" class="column-title" name="feature_<?php print $i ?>_title" value="<?php @esc_attr_e($column['title']) ?>" placeholder="<?php _e('Title', 'featuretable') ?>" />
				<input type="text" class="column-imageurl" name="feature_<?php print $i ?>_imageurl" value="<?php @esc_attr_e($column['imageurl']) ?>" placeholder="<?php _e('Image url', 'featuretable') ?>" />
				<input type="text" class="column-linkurl" name="feature_<?php print $i ?>_linkurl" value="<?php @esc_attr_e($column['linkurl']) ?>" placeholder="<?php _e('Link url', 'featuretable') ?>" />
				<textarea rows="6" class="column-description" name="feature_<?php print $i ?>_description" placeholder="<?php _e('Description', 'featuretable') ?>"><?php @esc_attr_e($column['description']) ?></textarea>
								
			</div>
		<?php 
		endforeach ;
	} ?>
	
	<div class="column addnew"><?php _e('Add Feature', 'featuretable') ?></div>
	<div class="clear"></div>
</div>